﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAO;
using DTO;

namespace BUS
{
    public class CTHD_BUS
    {
        public static DataTable hienthicthd()
        {
            return CTHD_DAO.hienthicthd();
        }
        public static void ThemCTHD(CTHD_DTO cthd)
        {
            CTHD_DAO.ThemCTHD(cthd);
        }
        public static void SuaCTHD(CTHD_DTO cthd, string mahd, string macu)
        {
            CTHD_DAO.SuaCTHD(cthd, mahd, macu);
        }
        public static void XoaCTHD(CTHD_DTO cthd, string MaHD, string MaSP)
        {
            CTHD_DAO.XoaCTHD(cthd, MaHD, MaSP);
        }
        public static DataTable timkiem(string mahd)
        {
            return CTHD_DAO.timkiem(mahd);
        }

        public static DataTable timkiemNC(string mahd, string masp, string from, string to, string soluong)
        {
            return CTHD_DAO.timkiemNC(mahd, masp, from, to, soluong);
        }

    }
}
